package RunableSt;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


import java.net.Authenticator;
import java.net.PasswordAuthentication;

/**
 *
 * @author Administrator
 */
public class authenticator extends Authenticator{
   private String username,
                  password;
                     
   public authenticator(String username,String password)
           
   {
      this.username = username;
      this.password = password;
   }
   
   protected PasswordAuthentication getPasswordAuthentication()
   {
      return new PasswordAuthentication(
             username,password.toCharArray());
   }
}
